projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f8d6ff
)
pixbufutils: Simplify function
author
Benjamin Otte
<otte@redhat.com>
Tue, 14 Sep 2021 16:17:44 +0000
(18:17 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 16 Sep 2021 02:00:41 +0000
(22:00 -0400)
gtk/gdkpixbufutils.c
patch
|
blob
|
history
diff --git
a/gtk/gdkpixbufutils.c
b/gtk/gdkpixbufutils.c
index d1b6693918161d137f95f6681dfc86f7955bb7af..2b48d76943e0bfa220068869b75755f704782a30 100644
(file)
--- a/
gtk/gdkpixbufutils.c
+++ b/
gtk/gdkpixbufutils.c
@@
-505,14
+505,7
@@
gtk_make_symbolic_pixbuf_from_file (GFile *file,
GdkTexture *
gtk_load_symbolic_texture_from_resource (const char *path)
{
- GdkPixbuf *pixbuf;
- GdkTexture *texture;
-
- pixbuf = _gdk_pixbuf_new_from_resource (path, "png", NULL);
- texture = gdk_texture_new_for_pixbuf (pixbuf);
- g_object_unref (pixbuf);
-
- return texture;
+ return gdk_texture_new_from_resource (path);
}
GdkTexture *